<?php echo $this->Html->script(array('actions'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array('carts.view','form','actions'),null,array('inline'=>false));?>

<div class="content">
	<div class="left-column">
		<div class="box corners">
			<h2><?php echo __('Categories',true)?></h2>
			<?php echo $this->Categories->categories(); ?>
			<div class="clr"></div>	
		</div>
		<div class="clr"></div>	
	</div>
	
	<div class="right-column">
	
		<div class="items view box corners">
			<?php echo $this->Html->link($fileUpload->image($item['Upload']['name'],array('autoResize'=>true,'width'=>670,'imagePathOnly'=>false,'onContextMenu'=>"alert('all pictures are copyrighted and not for to be used without permission'); return false;")),$return,array('escape'=>false,'class'=>'view-image'));?>
			<div class="clr"></div>
			<h2><?php echo $item['Cart']['name'];?></h2>
			<?php echo $item['Cart']['content']; ?>
		</div>
		
		<div class="paging">
			<?php if(isset($neighbors['prev']['Cart']['id'])){?>
			<span><?php echo $this->Html->link(__('<< previous',true),array('action'=>'view',$neighbors['prev']['Cart']['id']))?></span>
			<?php }else{?>
			<span class="disabled"><?php echo __('<< previous',true)?></span>
			<?php }?>
			<span><?php echo $this->Html->link(__('list',true),array('action'=>'index'))?></span>
			<?php if(isset($neighbors['next']['Cart']['id'])){?>
			<span><?php echo $this->Html->link(__('next >>',true),array('action'=>'view',$neighbors['next']['Cart']['id']))?></span>
			<?php }else{?>
			<span class="disabled"><?php echo __('next >>',true)?></span>
			<?php }?>
		</div>
		
		<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>	
		<div class="actions main_actions">
			<h3><?php __('Actions'); ?></h3>
			<ul>
				<li><?php echo $this->Html->link(__('Edit Catrt', true), array('action' => 'edit', $item['Cart']['id'])); ?> </li>
				<li><?php echo $this->Html->link(__('Delete Cart', true), array('action' => 'delete', $item['Cart']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $item['Cart']['id'])); ?> </li>
				<li><?php echo $this->Html->link(__('Carts', true), array('action' => 'index')); ?> </li>
				<li><?php echo $this->Html->link(__('Add Cart', true), array('action' => 'add')); ?> </li>
				<li><?php echo $this->Html->link(__('Categories', true), array('action' => 'category_index')); ?> </li>
				<li><?php echo $this->Html->link(__('Add Category', true), array('action' => 'category_add')); ?> </li>
			</ul>
		</div>
		<?php }?>
	</div>
</div>
<div class="clr"></div>	